package com.hliushi.decorator.example01;

/**
 * 装饰器抽象类
 *
 * @author: hliushi
 * @date: 2023/2/14 23:08
 **/
public abstract class AbstractDecorator implements Showable {

    private Showable showable;

    public AbstractDecorator(Showable showable) {
        this.showable = showable;
    }

    @Override
    public void show() {
        // 直接调用不加任何装饰
        showable.show();
    }
}
